﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XrmLibrary.MsCrm4Adapter.Extensions
{
    public static class BusinessEntityExtensions
    {
        public static Microsoft.Xrm.Sdk.Entity ToEntity(this Microsoft.Crm.Sdk.BusinessEntity businessEntity)
        {
            Microsoft.Crm.Sdk.DynamicEntity dynamicEntity = (Microsoft.Crm.Sdk.DynamicEntity)businessEntity;
            return dynamicEntity.ToEntity();
        }
    }
}
